import request from '@/utils/request'

// 查询承运企业列表
export function listCompany(query) {
  return request({
    url: '/biz/transportCompany/list',
    method: 'get',
    params: query
  })
}

// 新增运输公司
export function addCompany(data) {
  return request({
    url: '/biz/transportCompany',
    method: 'post',
    data: data
  })
}

// 获取企业编码
export function getCompanyCode(data) {
  return request({
    url: '/biz/transportCompany/nextCode',
    method: 'post',
    data: data
  })
}